import {useCommonStore} from './modules/common.js'
import {useNavsStore} from './modules/tags.js'
import {useLogsStore} from './modules/logs.js'
import {usePermissionStore} from './modules/permission.js'
import {useErpUserStore} from './modules/usererp.js'
import {useAppStore} from "./modules/app.js";
import {useCrmStore} from "./modules/crm.js";
import {useHrmStore} from "./modules/hrm.js";
import {mapStores} from "pinia";
// import {useUserStore} from './modules/user.js'


import { createPinia } from 'pinia'


const store = createPinia()

function setupStore(app) {
  app.use(store);
}

export {store, setupStore}